Repository navigation
FlashAttention: use subgroup size 32 on Intel Xe2 and Xe3 - #33808
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
/run bots |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the change requesting a subgroup size of 32 on supported Intel adapters.
No open issues 🎉
What changed in this PR
This PR requests a subgroup size of 32 for WebGPU FlashAttention dense prefill on supported Intel adapters, allowing Tint to use a constant shuffle lane bound and helping avoid indirect register addressing.
Changes:
- Sets subgroup size to 32 when Intel hardware supports subgroup size control and the requested size.
- Preserves existing behavior when capability or tile-size compatibility checks fail.
| File | Description |
|---|---|
onnxruntime/contrib_ops/webgpu/bert/flash_attention.cc |
Adds guarded Intel subgroup-size selection for dense prefill. |
Review effort: Balanced
|
The request was received. Approve workflow runs. Thanks. |
|
LGTM! |
|
Jiajia Qin (@qjia7) PTAL |
ad053b0 to
0a05eb5
Compare
0a05eb5 to
ed92d9f
Compare
|
/run bots |
|
The request was received. Approve workflow runs. Thanks. |
An explicit subgroup size lets Tint use a constant lane clamp bound for subgroupShuffle, so IGC keeps direct register addressing.
ed92d9f to
ba9e271
Compare
|
/run bots |
|
The request was received. Approve workflow runs. Thanks. |
|
/run failed bots |
|
The request was received. Failed workflow jobs were queued for rerun. Thanks. |
|
/run bots |
|
The request was received. Approve workflow runs. Thanks. |
An explicit subgroup size lets Tint use a constant lane clamp bound for subgroupShuffle, so IGC keeps direct register addressing.